package com.example.login.model

import com.example.login.api.LoginApiServer
import com.example.login.entity.LoginResultEntity
import okhttp3.RequestBody
import javax.inject.Inject

class LoginRepository @Inject constructor(val apiServer: LoginApiServer) {

    suspend fun loginToServer(body: RequestBody):LoginResultEntity =apiServer.loginToServer(body)
    suspend fun registerToServer(body: RequestBody):LoginResultEntity =apiServer.registerToServer(body)
}